
<%@ page import="website.Review" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'review.label', default: 'Review')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-review" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-review" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list review">
			
				<g:if test="${reviewInstance?.apartment}">
				<li class="fieldcontain">
					<span id="apartment-label" class="property-label"><g:message code="review.apartment.label" default="Apartment" /></span>
					
						<span class="property-value" aria-labelledby="apartment-label"><g:link controller="apartment" action="show" id="${reviewInstance?.apartment?.id}">${reviewInstance?.apartment?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${reviewInstance?.clean}">
				<li class="fieldcontain">
					<span id="clean-label" class="property-label"><g:message code="review.clean.label" default="Clean" /></span>
					
						<span class="property-value" aria-labelledby="clean-label"><g:fieldValue bean="${reviewInstance}" field="clean"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reviewInstance?.cons}">
				<li class="fieldcontain">
					<span id="cons-label" class="property-label"><g:message code="review.cons.label" default="Cons" /></span>
					
						<span class="property-value" aria-labelledby="cons-label"><g:fieldValue bean="${reviewInstance}" field="cons"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reviewInstance?.date_created}">
				<li class="fieldcontain">
					<span id="date_created-label" class="property-label"><g:message code="review.date_created.label" default="Datecreated" /></span>
					
						<span class="property-value" aria-labelledby="date_created-label"><g:formatDate date="${reviewInstance?.date_created}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reviewInstance?.loc}">
				<li class="fieldcontain">
					<span id="loc-label" class="property-label"><g:message code="review.loc.label" default="Loc" /></span>
					
						<span class="property-value" aria-labelledby="loc-label"><g:fieldValue bean="${reviewInstance}" field="loc"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reviewInstance?.pros}">
				<li class="fieldcontain">
					<span id="pros-label" class="property-label"><g:message code="review.pros.label" default="Pros" /></span>
					
						<span class="property-value" aria-labelledby="pros-label"><g:fieldValue bean="${reviewInstance}" field="pros"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reviewInstance?.staff}">
				<li class="fieldcontain">
					<span id="staff-label" class="property-label"><g:message code="review.staff.label" default="Staff" /></span>
					
						<span class="property-value" aria-labelledby="staff-label"><g:fieldValue bean="${reviewInstance}" field="staff"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reviewInstance?.stand}">
				<li class="fieldcontain">
					<span id="stand-label" class="property-label"><g:message code="review.stand.label" default="Stand" /></span>
					
						<span class="property-value" aria-labelledby="stand-label"><g:fieldValue bean="${reviewInstance}" field="stand"/></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${reviewInstance?.id}" />
					<g:link class="edit" action="edit" id="${reviewInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
